#pragma once
#include <iostream>
#include <string>

class Task
{
public:
    Task()
    {
    }
    Task(int x, int y) : _x(x), _y(y)
    {
    }
    ~Task()
    {
    }
    int Excute()
    {
        return _x + _y;
    }
    int operator()()
    {
        return Excute();
    }

    std::string result()
    {
        return std::to_string(_x) + " + " + std::to_string(_y) + " = " + std::to_string(_x + _y);
    }

private:
    int _x;
    int _y;
    int _result;
};